Every star undergoes different phases during its evolution. These phases depend on the star's mass and chemical composition.